<template>
  <div class="site-index">
    <common-head :title="'创优71条'"></common-head>
    <div class="site-intaller">
      <div class="item-list" v-for="(item, index) in list" :key="index" @click="toDetail(item)">
        <span class="name">{{item.title}}</span>
        <img src="../../../assets/icon/arrow-r.png" class="ar" alt="">
    </div>
  </div>
  </div>
</template>
<script>
import CommonHead from 'components/Header'
export default {
  name: 'association',
  data () {
    return {
      list: []
    }
  },
  components: {
    CommonHead
  },
  computed: {
  },
  created () {
    this.queryBimVideo()
  },
  methods: {
    back () {
      this.$router.go(-1)
    },
    queryBimVideo () {
      let arr = []
      this.$http.CY71Categorys({}).then(res => {
        this.list = res.data
        res.data.forEach(v => {
          v.subObjs.forEach(k => {
            arr.push(k)
          })
        })
        this.list = arr
      })
    },
    toDetail (item) {
      this.$router.push({ path: '/information', query: { id: item.id, name: item.title } })
    }
  }
}
</script>
<style lang="scss">
</style>
